from starlette.requests import Request


def set_request_action(request: Request, action: str, ) -> None:
    """先定义一个设置 action 的辅助函数，后续想到优化方案再说"""
    request.scope['action'] = action